home *** CD-ROM | disk | FTP | other *** search
/ .net 2000 August / NET74.ISO / pc / Software / JavaApplet / AnfyMacBeta1.sea / Anfy for Macintosh / anjavapp / warp / warp.txt < prev    next >
Encoding:
Text File  |  1999-07-05  |  5.2 KB  |  122 lines  |  [TEXT/ttxt]

  1.  
  2.           AnfyWarp - Copyright (C) by Fabio Ciucci 1996-99
  3.  
  4.  
  5. This applet can warp/spiralise any GIF or JPG image. The only requirement is
  6. that this image must be sized equally to one of the powers of 2 (64x64 pixel, 
  7. or 32x64, 128x128, ...).
  8.  
  9. Changing parameter values allows you to simulate a "breathing image" effect.
  10. This applet is fully parameterized, so you can generate all kinds of warp
  11. effects.
  12.  
  13. ***************************************************************************
  14.  
  15. NECESSARY FILES.
  16.  
  17. As well as the image to deform, and an optional overlay image, the 
  18. following 3 ".class" files must be uploaded: 
  19.  
  20. Warp.class
  21. Lware.class
  22. anfy.class
  23.  
  24. Plus, Warp.jar for speedy loading on recent browsers.
  25.  
  26. **************************************************************************
  27.  
  28. EXAMPLE.
  29.  
  30. Insert the <applet> tag in your html document as follows to add this applet
  31. to your page (Comments after the ";" symbol are code explanations and
  32. acceptable min/max values. They are not part of the applet language):
  33.  
  34.  
  35. <applet archive="Warp.jar" code="Warp.class" width="128" height="128">
  36. <param name="credits" value="Applet by Fabio Ciucci (www.anfyteam.com)">
  37. <param name="regcode" value="NO">          ; Registration code (if you have it)
  38. <param name="reglink" value="NO">          ; Optional URL link when the applet
  39.                                            is "clicked".
  40. <param name="regnewframe" value="YES">          ; Reglink opened in new frame?
  41. <param name="regframename" value="_blank">      ; Name of new frame for reglink
  42. <param name="statusmsg" value="warp">  ; Statusbar message
  43. <param name="image" value="img64n1.GIF">      ; Image to warp
  44. <param name="res" value="1">                  ; resolution (1-8)
  45. <param name="w1start" value="-500">           ; spiral start (-10000 .. 10000)
  46. <param name="w2start" value="5">              ; breath start (-2000 .. 2000)
  47. <param name="wadd1" value="2">                ; spiral add (0 .. 250)
  48. <param name="wadd2" value="1">                ; breath add (0 .. 250)
  49. <param name="w1min" value="-500">             ; spiral min (-10000 .. 10000)
  50. <param name="w1max" value="500">              ; spiral max (-10000 .. 10000)
  51. <param name="w2min" value="-100">             ; breath min (-2000 .. 2000)
  52. <param name="w2max" value="350">              ; breath max (-2000 .. 2000)
  53. <param name="warpmode" value="1">             ; Warp mode (1 .. 3)
  54. <param name="overimg" value="NO">                 ; Optional image over applet
  55. <param name="overimgX" value="0">                 ; Over image X offset
  56. <param name="overimgY" value="0">                 ; Over image Y offset
  57. <param name="memdelay" value="1000">            ; Memory deallocation delay
  58. <param name="priority" value="3">               ; Task priority (1..10)
  59. <param name="MinSYNC" value="10">            ; Min. milliseconds/frame for sync
  60. Sorry, your browser doesn't support Java.  ; Message for no java browsers.
  61. </applet>                                  ; End of applet tag
  62.  
  63. ****************************************************************************
  64.  
  65. INSTRUCTIONS.
  66.  
  67. The following instructions describe how to change parameters:
  68.  
  69. Attempting to change the "credits" parameter will disable the applet.
  70.  
  71. To activate the reg parameters, read the shareware registration notes.
  72. In the "regcode" parameter, place the registration code you purchased 
  73. from the author. If the code is correct and the applet is run from the 
  74. registered domain name, you can use "link" parameters to link to a URL
  75. when the applet is "clicked".
  76.  
  77. If you set "regnewframe" to "YES", you can specify a specific frame 
  78. location for the reglink:
  79.  
  80. "_blank"  : To load the link in a new blank unnamed browser window.
  81. "_self"   : To load the link into the same window the applet occupies.
  82. "_parent" : To load the link into the immediate FRAMESET parent.
  83. "_top"    : To load the link into the top body of the window.
  84.  
  85. You can also set a custom frame name, such as "myframe1".
  86.  
  87. With the "overimg" parameter you can specify the name of an image that will
  88. be painted over the applet. The best options are transparent GIF images.
  89. NOTE: Animated GIF images are supported, but will be animated only on latest 
  90. browsers (Netscape 4 and Explorer 4 or newer).
  91.  
  92. With "overimgX" and "overimgY" you can center the image over the applet area.
  93.  
  94. The GIF or JPG format image must be sized equally to one of the powers of 2
  95. (64x64 pixels, or 32x64, 128x128, ...). Valid sizes, for example, are 8*8,
  96. 8*16, 8*32, 16*32, 32*16, 32*32, 64*64, 64*32, 128*32, 128*64, 32*128,
  97. 128*128, 256*128...
  98.  
  99. The applet can be of any size. The "res" parameter determines the resolution:
  100. with res=1 pixels are small, but the effect is slow. With res=8, pixels are
  101. too big but the effect is faster. Optimum choices are 1-3.
  102.  
  103. You can control and mix two effects: a spiralizer and a "breath simulator".
  104.  
  105. Parameters w1start,wadd1,w1min,w1max are for the spiralizer.
  106. Parameters w2start,wadd2,w2min,w2max are for the breath simulator.
  107.  
  108. The min, max and start values can go between -10000 and 10000, and you can
  109. set them as you prefer.
  110.  
  111. The add values (the speed) can go between 0 and 250.
  112.  
  113. If you set "wadd1" to 0, you will deactivate the spiraliser, and the image will
  114. only breathe.
  115.  
  116. If you set "wadd2" to 0, you will deactivate the breath simulator, and the
  117. image will only spiral.
  118.  
  119. By changing "warpmode" you will change the effect distorting the texture.
  120.  
  121.  
  122.